#!python

import os

set_configs("debug", "release")

benchmark = CxxProject("benchmark")
benchmark.sources = regex_glob("src", "\.c[^.]*$")
if os.name == "nt":
    benchmark.includedirs = ["../../../gtest-trunk/include", r"C:\Boost\include\boost-1_40", r"C:\Python26\include"]
    benchmark.links = ["../../../gtest-trunk/msvc/gtest-md/Release/gtest.lib"]
    benchmark.libdirs = [r"C:\Boost\lib", r"C:\Python26\libs"]
else:
    benchmark.buildoptions = library_config("python-config --includes")
    benchmark.linkoptions = library_config("gtest-config --libs") + library_config("python-config --libs") + ["-lboost_system-mt"]
if is_config("debug"):
    benchmark.debug = True
if is_config("release"):
    benchmark.optimize = True
